
var dataReport = new Vue({
    el:'#dataReport',
    data:{
        /*查询第一部分的定义*/
        ruleForm:{
            names:'',
            carNum:'',
            times:''
        },

        activeName:'0',
        dialogFormVisible:false,


        listRule:[],

},
    methods: {
        inquireReports:function(){
            var _this = this;
            $.post("/repair_order/inquire_reports",{names:_this.ruleForm.names,carNum:_this.ruleForm.carNum},function(datas){
               debugger
                _this.listRule = datas.data;
                var len = _this.listRule.length;
                _this.listRule.push({customername:'合计',})
            })
        }
    },
    created:function(){
        var _this = this;
        $.post("/repair_order/inquire_reports",{names:_this.ruleForm.names,carNum:_this.ruleForm.carNum},function(datas){
            debugger
            _this.listRule = datas.data;
            var len = _this.listRule.length;
            _this.listRule.push({customername:'合计',})
        })
    }
});


